#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "Channel.h"

typedef struct
{
    int32_t size;          // 记录指针指向的数组的元素总个数
    struct Channel **list; // list  = [Channel*,Channel*,Channel*,Channel*]
} ChannelMap;

// 初始化
ChannelMap *channelMapInit(int32_t size);
// 清空map
void channelMapClear(ChannelMap *channelMap);
// 重新分配内存空间
bool MakeMapRoom(ChannelMap *channelMap, int32_t size, int32_t unitSize);
